﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.Security;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptEmployeeRate : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components;
        private DetailBand Detail;
        private DetailBand Detail1;
        private DetailReportBand DetailReport;
        private XRLabel dtDate;
        private GroupHeaderBand GroupHeader2;
        private HRM_PROCESS_RATE l_Rate;
        private HRM_PROCESS_RATEDETAIL l_RateDetail;
        private int m_Month;
        private int m_Order;
        private Guid m_RateID;
        private int m_Year;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtCompany;
        private XRLabel txtDepartmentName;
        private XRLabel txtEmployeeCode;
        private XRLabel txtEmployeeName;
        private XRLabel txtEmployeePosition;
        private XRLabel txtIsRecidivism;
        private XRTableCell txtOrder;
        private XRLabel txtTitle;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel11;
        private XRLabel xrLabel12;
        private XRLabel xrLabel14;
        private XRLabel xrLabel2;
        private XRLabel xrLabel3;
        private XRLabel xrLabel4;
        private XRLabel xrLabel5;
        private XRLabel xrLabel6;
        private XRLabel xrLabel7;
        private XRLabel xrLabel8;
        private XRLabel xrLabel9;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell6;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;

        public rptEmployeeRate()
        {
            this.l_Rate = new HRM_PROCESS_RATE();
            this.l_RateDetail = new HRM_PROCESS_RATEDETAIL();
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_RateID = Guid.Empty;
            this.m_Order = 0;
            this.components = null;
            this.InitializeComponent();
        }

        public rptEmployeeRate(Guid RateID)
        {
            this.l_Rate = new HRM_PROCESS_RATE();
            this.l_RateDetail = new HRM_PROCESS_RATEDETAIL();
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_RateID = Guid.Empty;
            this.m_Order = 0;
            this.components = null;
            this.InitializeComponent();
            this.m_RateID = RateID;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(rptEmployeeRate));
            this.Detail = new DetailBand();
            this.txtEmployeeCode = new XRLabel();
            this.txtEmployeePosition = new XRLabel();
            this.txtDepartmentName = new XRLabel();
            this.xrLabel14 = new XRLabel();
            this.txtEmployeeName = new XRLabel();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.dtDate = new XRLabel();
            this.txtTitle = new XRLabel();
            this.txtCompany = new XRLabel();
            this.ReportFooter = new ReportFooterBand();
            this.txtIsRecidivism = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.xrLabel11 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrLabel9 = new XRLabel();
            this.xrLabel8 = new XRLabel();
            this.xrLabel7 = new XRLabel();
            this.xrLabel6 = new XRLabel();
            this.xrLabel5 = new XRLabel();
            this.xrLabel4 = new XRLabel();
            this.xrLabel3 = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.DetailReport = new DetailReportBand();
            this.Detail1 = new DetailBand();
            this.GroupHeader2 = new GroupHeaderBand();
            this.xrTable1.BeginInit();
            this.xrTable2.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.txtEmployeeCode, this.txtEmployeePosition, this.txtDepartmentName, this.xrLabel14, this.txtEmployeeName });
            this.Detail.HeightF = 59.00002f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.txtEmployeeCode.Font = new Font("Times New Roman", 12f);
            this.txtEmployeeCode.LocationFloat = new PointFloat(510.9585f, 10.00001f);
            this.txtEmployeeCode.Multiline = true;
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtEmployeeCode.SizeF = new SizeF(176.0415f, 22.99998f);
            this.txtEmployeeCode.StylePriority.UseFont = false;
            this.txtEmployeeCode.Text = "[EmployeeCode]";
            this.txtEmployeePosition.Font = new Font("Times New Roman", 12f);
            this.txtEmployeePosition.LocationFloat = new PointFloat(385.4167f, 36.00003f);
            this.txtEmployeePosition.Name = "txtEmployeePosition";
            this.txtEmployeePosition.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtEmployeePosition.SizeF = new SizeF(301.5833f, 22.99998f);
            this.txtEmployeePosition.StylePriority.UseFont = false;
            this.txtEmployeePosition.Text = "Vị tr\x00ed c\x00f4ng t\x00e1c: ";
            this.txtDepartmentName.Font = new Font("Times New Roman", 12f);
            this.txtDepartmentName.LocationFloat = new PointFloat(0f, 36.00003f);
            this.txtDepartmentName.Name = "txtDepartmentName";
            this.txtDepartmentName.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtDepartmentName.SizeF = new SizeF(370.4999f, 22.99998f);
            this.txtDepartmentName.StylePriority.UseFont = false;
            this.txtDepartmentName.Text = "Bộ phận c\x00f4ng t\x00e1c: ";
            this.xrLabel14.Font = new Font("Times New Roman", 12f);
            this.xrLabel14.LocationFloat = new PointFloat(447.0417f, 10.00001f);
            this.xrLabel14.Multiline = true;
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(59.91678f, 22.99998f);
            this.xrLabel14.StylePriority.UseFont = false;
            this.xrLabel14.Text = "MSNV: \r\n";
            this.txtEmployeeName.Font = new Font("Times New Roman", 12f);
            this.txtEmployeeName.LocationFloat = new PointFloat(0f, 10.00001f);
            this.txtEmployeeName.Name = "txtEmployeeName";
            this.txtEmployeeName.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtEmployeeName.SizeF = new SizeF(439.2499f, 22.99998f);
            this.txtEmployeeName.StylePriority.UseFont = false;
            this.txtEmployeeName.Text = "Họ v\x00e0 t\x00ean: ";
            this.TopMargin.HeightF = 70f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.dtDate, this.txtTitle, this.txtCompany });
            this.ReportHeader.HeightF = 98f;
            this.ReportHeader.Name = "ReportHeader";
            this.dtDate.Font = new Font("Times New Roman", 11f);
            this.dtDate.LocationFloat = new PointFloat(334.6042f, 68.37502f);
            this.dtDate.Name = "dtDate";
            this.dtDate.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.dtDate.SizeF = new SizeF(257.5208f, 17.99998f);
            this.dtDate.StylePriority.UseFont = false;
            this.dtDate.StylePriority.UseTextAlignment = false;
            this.dtDate.Text = "( Th\x00e1ng ………………./20...…)";
            this.dtDate.TextAlignment = TextAlignment.MiddleRight;
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(208.9166f, 10.00001f);
            this.txtTitle.Multiline = true;
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(478.0834f, 58.37501f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "BẢNG Đ\x00c1NH GI\x00c1/XẾP LOẠI \r\nC\x00c1N BỘ - C\x00d4NG NH\x00c2N VI\x00caN CHỨC, LĐ";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtCompany.Font = new Font("Times New Roman", 12f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(0f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(204.8749f, 58.37501f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.StylePriority.UseTextAlignment = false;
            this.txtCompany.Text = "txtCompany";
            this.txtCompany.TextAlignment = TextAlignment.MiddleCenter;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.txtIsRecidivism, this.xrLabel12, this.xrLabel11, this.xrLabel10, this.xrLabel9, this.xrLabel8, this.xrLabel7, this.xrLabel6, this.xrLabel5, this.xrLabel4, this.xrLabel3, this.xrLabel2, this.xrLabel1 });
            this.ReportFooter.HeightF = 440f;
            this.ReportFooter.Name = "ReportFooter";
            this.txtIsRecidivism.Font = new Font("Times New Roman", 12f);
            this.txtIsRecidivism.LocationFloat = new PointFloat(175.3333f, 43.79167f);
            this.txtIsRecidivism.Name = "txtIsRecidivism";
            this.txtIsRecidivism.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtIsRecidivism.SizeF = new SizeF(76.38887f, 22.99999f);
            this.txtIsRecidivism.StylePriority.UseFont = false;
            this.txtIsRecidivism.StylePriority.UseTextAlignment = false;
            this.txtIsRecidivism.Text = "IsRecidivism";
            this.txtIsRecidivism.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel12.Font = new Font("Times New Roman", 12f, FontStyle.Italic);
            this.xrLabel12.LocationFloat = new PointFloat(152.4305f, 367.7083f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(544.5695f, 22.99994f);
            this.xrLabel12.StylePriority.UseFont = false;
            this.xrLabel12.Text = "CB (k\x00fd/ghi r\x00f5 họ t\x00ean) …….........……..….........……………………….................……";
            this.xrLabel11.Font = new Font("Times New Roman", 12f, FontStyle.Italic);
            this.xrLabel11.LocationFloat = new PointFloat(0f, 266.6667f);
            this.xrLabel11.Name = "xrLabel11";
            this.xrLabel11.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel11.SizeF = new SizeF(697f, 85.49997f);
            this.xrLabel11.StylePriority.UseFont = false;
            this.xrLabel11.Text = manager.GetString("xrLabel11.Text");
            this.xrLabel10.Font = new Font("Times New Roman", 12f, FontStyle.Italic);
            this.xrLabel10.LocationFloat = new PointFloat(152.4305f, 230.2083f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(544.5695f, 22.99995f);
            this.xrLabel10.StylePriority.UseFont = false;
            this.xrLabel10.Text = "BCB (k\x00fd/ghi r\x00f5 họ t\x00ean) …….........……..….........……………………….................";
            this.xrLabel9.Font = new Font("Times New Roman", 12f, FontStyle.Bold);
            this.xrLabel9.LocationFloat = new PointFloat(0f, 183.5833f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(697f, 22.99995f);
            this.xrLabel9.StylePriority.UseFont = false;
            this.xrLabel9.Text = "Nhận x\x00e9t của BGĐ: [Description]";
            this.xrLabel8.Font = new Font("Times New Roman", 12f, FontStyle.Italic);
            this.xrLabel8.LocationFloat = new PointFloat(152.4305f, 115.625f);
            this.xrLabel8.Name = "xrLabel8";
            this.xrLabel8.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel8.SizeF = new SizeF(544.5695f, 22.99995f);
            this.xrLabel8.StylePriority.UseFont = false;
            this.xrLabel8.Text = "CB (k\x00fd/ghi r\x00f5 họ t\x00ean) …….........……..….........………………………....................";
            this.xrLabel7.Font = new Font("Times New Roman", 12f, FontStyle.Bold);
            this.xrLabel7.LocationFloat = new PointFloat(375f, 153f);
            this.xrLabel7.Name = "xrLabel7";
            this.xrLabel7.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel7.SizeF = new SizeF(322f, 22.99995f);
            this.xrLabel7.StylePriority.UseFont = false;
            this.xrLabel7.Text = "Xếp loại: [OwnerRate]";
            this.xrLabel6.Font = new Font("Times New Roman", 12f, FontStyle.Bold);
            this.xrLabel6.LocationFloat = new PointFloat(0f, 153f);
            this.xrLabel6.Name = "xrLabel6";
            this.xrLabel6.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel6.SizeF = new SizeF(370.4999f, 22.99995f);
            this.xrLabel6.StylePriority.UseFont = false;
            this.xrLabel6.Text = "Phần d\x00e0nh cho BCB tự cộng tổng điểm: [OwnerPlus!#,0]";
            this.xrLabel5.Font = new Font("Times New Roman", 12f);
            this.xrLabel5.LocationFloat = new PointFloat(375f, 76.99998f);
            this.xrLabel5.Name = "xrLabel5";
            this.xrLabel5.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel5.SizeF = new SizeF(322f, 23.00002f);
            this.xrLabel5.StylePriority.UseFont = false;
            this.xrLabel5.Text = "Xếp loại: [MyRate]";
            this.xrLabel4.Font = new Font("Times New Roman", 12f);
            this.xrLabel4.LocationFloat = new PointFloat(0f, 76.99998f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(370.4999f, 22.99995f);
            this.xrLabel4.StylePriority.UseFont = false;
            this.xrLabel4.Text = "Phần d\x00e0nh cho CB tự cộng tổng điểm: [MyPlus!#,0]";
            this.xrLabel3.Font = new Font("Times New Roman", 12f);
            this.xrLabel3.LocationFloat = new PointFloat(259.7222f, 44.79167f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(437.2778f, 22.99999f);
            this.xrLabel3.StylePriority.UseFont = false;
            this.xrLabel3.Text = "Tổng điểm trừ vi phạm trong th\x00e1ng: [Minus!#,0]";
            this.xrLabel2.Font = new Font("Times New Roman", 12f);
            this.xrLabel2.LocationFloat = new PointFloat(0f, 44.79167f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(172.5832f, 22.99999f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.Text = "Lỗi thuộc diện t\x00e1i phạm: ";
            this.xrLabel1.Font = new Font("Times New Roman", 12f);
            this.xrLabel1.LocationFloat = new PointFloat(0f, 10.00001f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(697f, 22.99998f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.Text = "Lỗi vi phạm trong th\x00e1ng: [Violation]";
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 10.25f);
            this.xrTable1.LocationFloat = new PointFloat(1.589457E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(697f, 50.99999f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell1, this.xrTableCell13, this.xrTableCell2, this.xrTableCell14, this.xrTableCell3, this.xrTableCell15 });
            this.xrTableRow1.Font = new Font("Times New Roman", 10.25f, FontStyle.Bold);
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.StylePriority.UseFont = false;
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.Weight = 0.21753945480631276;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.Text = "Nội dung đ\x00e1nh gi\x00e1";
            this.xrTableCell13.Weight = 1.4413556573722763;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Text = "Tự đ/g cho điểm";
            this.xrTableCell2.Weight = 0.3411051067423444;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.Text = "Tự xếp loại";
            this.xrTableCell14.Weight = 0.35867968522322224;
            this.xrTableCell3.CanGrow = false;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Text = "TBP đ/g cho điểm";
            this.xrTableCell3.Weight = 0.34307762813704945;
            this.xrTableCell15.CanGrow = false;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Text = "TBP xếp loại";
            this.xrTableCell15.Weight = 0.29824246771879481;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 10.25f);
            this.xrTable2.LocationFloat = new PointFloat(1.589457E-05f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(697f, 25f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.txtOrder, this.xrTableCell16, this.xrTableCell5, this.xrTableCell17, this.xrTableCell6, this.xrTableCell18 });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.Weight = 0.2175394876444528;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.Text = "[Content]";
            this.xrTableCell16.Weight = 1.4413557558866965;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.StylePriority.UseTextAlignment = false;
            this.xrTableCell5.Text = "[SelfScore!#,0]";
            this.xrTableCell5.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell5.Weight = 0.34110523809490445;
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "[SelfRate]";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell17.Weight = 0.35867915981298204;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.StylePriority.UseTextAlignment = false;
            this.xrTableCell6.Text = "[Score!#,0]";
            this.xrTableCell6.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell6.Weight = 0.34307789084216961;
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "[Rate]";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.29824246771879481;
            this.DetailReport.Bands.AddRange(new Band[] { this.Detail1, this.GroupHeader2 });
            this.DetailReport.Level = 0;
            this.DetailReport.Name = "DetailReport";
            this.Detail1.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail1.HeightF = 25f;
            this.Detail1.Name = "Detail1";
            this.GroupHeader2.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.GroupHeader2.HeightF = 51f;
            this.GroupHeader2.Name = "GroupHeader2";
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.ReportFooter, this.DetailReport });
            base.Margins = new Margins(0x47, 0x3b, 70, 0x38);
            base.PageHeight = 0x491;
            base.PageWidth = 0x33b;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptEmployeeRate_BeforePrint);
            this.xrTable1.EndInit();
            this.xrTable2.EndInit();
            this.EndInit();
        }

        private void rptEmployeeRate_BeforePrint(object sender, PrintEventArgs e)
        {
            ////if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";// MyInfo.Company.ToUpper();
            }
            DataSet set = new DataSet();
            DataTable list = new DataTable();
            list = this.l_Rate.GetList(this.m_RateID);
            set.Tables.Add(list);
            base.DataSource = set;
            base.DataAdapter = list;
            base.DataMember = list.TableName;
            this.l_Rate.Get(this.m_RateID);
            this.m_Month = this.l_Rate.Date.Month;
            this.m_Year = this.l_Rate.Date.Year;
            this.dtDate.Text = "(Th\x00e1ng " + this.m_Month.ToString() + " Năm " + this.m_Year.ToString() + ")";
            this.l_Rate.Get(this.m_RateID);
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
            hrm_employee.Get(this.l_Rate.EmployeeCode);
            this.txtEmployeeName.Text = "Họ v\x00e0 t\x00ean: " + hrm_employee.FirstName + " " + hrm_employee.LastName;
            this.txtDepartmentName.Text = "Bộ phận c\x00f4ng t\x00e1c: " + hrm_employee.DepartmentName;
            this.txtEmployeePosition.Text = "Vị tr\x00ed c\x00f4ng t\x00e1c: " + hrm_employee.Position;
            if (!this.l_Rate.IsRecidivism)
            {
                this.txtIsRecidivism.Text = "Kh\x00f4ng";
            }
            else
            {
                this.txtIsRecidivism.Text = "C\x00f3";
            }
            DataSet set2 = new DataSet();
            DataTable table = new DataTable();
            table = this.l_RateDetail.GetList(this.m_RateID);
            set2.Tables.Add(table);
            this.DetailReport.DataSource = set2;
            this.DetailReport.DataAdapter = table;
            this.DetailReport.DataMember = table.TableName;
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

